from sqlalchemy import Column, Integer, String, CHAR, Float, DECIMAL
from sqlalchemy.dialects.mysql import LONGTEXT
from datetime import datetime
from app.models.base import db, Base


class captcha(db.Model):
    id = Column(Integer,primary_key=True, autoincrement=True)
    captcha_number = Column(String(60), nullable=False,unique=True)
    title = Column(String(30), nullable=False)
    author = Column(String(20), default='佚名')
    char_sum = Column(Integer, default=0)
    create_time = Column(String(30))
    similar_rate = Column(Float, default=0)